﻿@model Test.Entities.Website

@section TitleContent {
Control Panel
}

@section HeadContent {
		<script type="text/javascript" src="@Url.Content("~/Content/Scripts/jquery.validate.min.js")"></script>
		<script type="text/javascript" src="@Url.Content("~/Content/Scripts/jquery.validate.unobtrusive.min.js")"></script>
}

	<div class="contentRegion">
		<div class="contentRegionFull">
			<div class="contentRegionHeader">Modify Website</div>
			<div class="contentRegionContainer">
				@using (Html.BeginForm()) {
		   
					@Html.ValidationSummary(true)
								
					@Html.HiddenFor(model => model.OwnerId)
					@Html.HiddenFor(model => model.ParentId)

					<div class="editor-label">
						@Html.LabelFor(model => model.Name)
					</div>
					<div class="editor-field">
						@Html.EditorFor(model => model.Name)
						@Html.ValidationMessageFor(model => model.Name)
					</div>
		
					<div class="editor-label">
						@Html.LabelFor(model => model.Type)
					</div>
					<div class="editor-field">
						@Html.DropDownFor(model => model.Type)
						@Html.ValidationMessageFor(model => model.Type)
					</div>

					<p>
						<input type="submit" value="Create" />
					</p>
				}

				<div>
					@Html.ActionLink("Back to List", "manage")
				</div>
			</div>
		</div>
	</div>